package com.iworkh.spring.genericdi.service;

import com.iworkh.spring.genericdi.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * BaseService
 *
 * @author: iworkh-沐雨云楼
 * @date: 2019-12-18
 */

public class BaseService<T> {

    @Autowired
    protected BaseDao<T> baseDao;

    public void save(T t){

        System.out.println(baseDao);

        baseDao.save(t);
    }
}
